/* ===== ListView主容器样式 - 明亮蓝白色主题 ===== */
.list-view {
    -fx-background-color: rgba(240, 248, 255, 0.95);
    -fx-border-color: rgba(59, 130, 246, 0.3);
    -fx-border-width: 1px;
    -fx-border-radius: 16px;
    -fx-background-radius: 16px;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.15), 15, 0.2, 0, 3),
                innershadow(gaussian, rgba(255, 255, 255, 0.8), 2, 0.5, 0, 1);
    -fx-padding: 0;
}

/* ===== ListView内容区域 - 明亮现代卡片风格 ===== */
.list-view .virtual-flow .clipped-container .sheet .list-cell {
    -fx-background-color: transparent;
    -fx-text-fill: rgba(30, 58, 138, 0.9);
    -fx-font-size: 15px;
    -fx-font-family: "Segoe UI Variable", "SF Pro Display", "Microsoft YaHei", sans-serif;
    -fx-font-weight: 400;
    -fx-padding: 16px 20px;
    -fx-border-color: transparent;
    -fx-border-width: 0;
    -fx-text-overrun: clip;
    -fx-ellipsis-string: "";
    -fx-background-radius: 0;
    -fx-border-radius: 0;
}

/* ===== ListView单元格边框线 - 明亮主题微妙分割线 ===== */
.list-view .virtual-flow .clipped-container .sheet .list-cell:filled {
    -fx-border-color: transparent transparent rgba(59, 130, 246, 0.15) transparent;
    -fx-border-width: 0 0 1px 0;
    -fx-border-style: solid;
}

/* ===== ListView单元格悬停效果 - 明亮主题悬浮效果 ===== */
.list-view .virtual-flow .clipped-container .sheet .list-cell:hover {
    -fx-background-color: rgba(59, 130, 246, 0.1);
    -fx-text-fill: rgba(30, 58, 138, 1);
    -fx-cursor: hand;
    -fx-background-radius: 12px;
    -fx-effect: dropshadow(gaussian, rgba(59, 130, 246, 0.3), 8, 0.4, 0, 2);
    -fx-scale-x: 1.02;
    -fx-scale-y: 1.02;
}

/* ===== ListView单元格选中效果 - 明亮主题渐变 ===== */
.list-view .virtual-flow .clipped-container .sheet .list-cell:selected {
    -fx-background-color: linear-gradient(from 0% 0% to 100% 100%, 
                         rgba(59, 130, 246, 0.2) 0%, 
                         rgba(147, 197, 253, 0.3) 50%, 
                         rgba(219, 234, 254, 0.4) 100%);
    -fx-border-color: rgba(59, 130, 246, 0.7);
    -fx-border-width: 1px;
    -fx-text-fill: rgba(30, 58, 138, 1);
    -fx-font-weight: 500;
    -fx-background-radius: 12px;
    -fx-border-radius: 12px;
    -fx-effect: dropshadow(gaussian, rgba(59, 130, 246, 0.4), 12, 0.5, 0, 4),
                innershadow(gaussian, rgba(255,255,255,0.6), 1, 1, 0, 1);
}

/* ===== ListView单元格选中且悬停效果 - 增强明亮光效 ===== */
.list-view .virtual-flow .clipped-container .sheet .list-cell:selected:hover {
    -fx-background-color: linear-gradient(from 0% 0% to 100% 100%, 
                         rgba(59, 130, 246, 0.3) 0%, 
                         rgba(147, 197, 253, 0.4) 50%, 
                         rgba(219, 234, 254, 0.5) 100%);
    -fx-border-color: rgba(59, 130, 246, 0.9);
    -fx-effect: dropshadow(gaussian, rgba(59, 130, 246, 0.5), 16, 0.6, 0, 6),
                innershadow(gaussian, rgba(255,255,255,0.8), 2, 1, 0, 1);
    -fx-scale-x: 1.03;
    -fx-scale-y: 1.03;
}

/* ===== ListView焦点效果 - 明亮主题焦点环 ===== */
.list-view:focused .virtual-flow .clipped-container .sheet .list-cell:selected {
    -fx-background-color: linear-gradient(from 0% 0% to 100% 100%, 
                         rgba(59, 130, 246, 0.25) 0%, 
                         rgba(147, 197, 253, 0.35) 50%, 
                         rgba(219, 234, 254, 0.45) 100%);
    -fx-border-color: rgba(59, 130, 246, 0.8);
    -fx-border-width: 2px;
    -fx-border-radius: 12px;
    -fx-effect: dropshadow(gaussian, rgba(59, 130, 246, 0.5), 20, 0.7, 0, 8);
}

/* ===== ListView滚动条样式 - 明亮现代滚动条 ===== */
.list-view .scroll-bar:vertical {
    -fx-background-color: rgba(255, 255, 255, 0.3);
    -fx-border-color: transparent;
    -fx-border-width: 0;
    -fx-pref-width: 8px;
    -fx-opacity: 0.7;
}

.list-view .scroll-bar:vertical .track {
    -fx-background-color: rgba(59, 130, 246, 0.1);
    -fx-background-radius: 4px;
    -fx-border-color: transparent;
}

.list-view .scroll-bar:vertical .thumb {
    -fx-background-color: rgba(59, 130, 246, 0.6);
    -fx-background-radius: 4px;
    -fx-border-radius: 4px;
    -fx-effect: dropshadow(gaussian, rgba(59, 130, 246, 0.3), 4, 0.5, 0, 1);
}

.list-view .scroll-bar:vertical .thumb:hover {
    -fx-background-color: rgba(59, 130, 246, 0.8);
    -fx-effect: dropshadow(gaussian, rgba(59, 130, 246, 0.4), 6, 0.6, 0, 2);
}

.list-view .scroll-bar:vertical .thumb:pressed {
    -fx-background-color: rgba(59, 130, 246, 1);
}

/* ===== 滚动条箭头按钮隐藏 ===== */
.list-view .scroll-bar .increment-button,
.list-view .scroll-bar .decrement-button {
    -fx-pref-height: 0;
    -fx-pref-width: 0;
}

/* ===== ListView空白区域 - 明亮背景 ===== */
.list-view .virtual-flow .clipped-container .sheet {
    -fx-background-color: rgba(248, 250, 252, 0.8);
}

/* ===== ListView焦点框 - 明亮主题发光边框 ===== */
.list-view:focused {
    -fx-background-insets: 0;
    -fx-border-color: rgba(59, 130, 246, 0.7);
    -fx-border-width: 2px;
    -fx-border-radius: 16px;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.15), 15, 0.2, 0, 3),
                innershadow(gaussian, rgba(255,255,255,0.8), 2, 0.5, 0, 1),
                dropshadow(gaussian, rgba(59, 130, 246, 0.5), 12, 0.8, 0, 0);
}

/* ===== 音乐文件图标样式 - 明亮主题图标 ===== */
.music-icon {
    -fx-font-family: "Segoe Fluent Icons", "Segoe MDL2 Assets";
    -fx-font-size: 18px;
    -fx-text-fill: rgba(59, 130, 246, 1);
    -fx-effect: dropshadow(gaussian, rgba(59, 130, 246, 0.4), 4, 0.5, 0, 1);
}

/* ===== 长文本滚动标签样式 ===== */
.scrolling-label {
    -fx-text-fill: inherit;
    -fx-font-size: inherit;
    -fx-font-family: inherit;
    -fx-text-overrun: clip;
    -fx-ellipsis-string: "";
    -fx-padding: 0;
}

/* ===== Tooltip样式美化 - 明亮主题提示框 ===== */
.tooltip {
    -fx-background-color: rgba(255, 255, 255, 0.98);
    -fx-text-fill: rgba(30, 58, 138, 0.9);
    -fx-border-color: rgba(59, 130, 246, 0.5);
    -fx-border-width: 1px;
    -fx-border-radius: 8px;
    -fx-background-radius: 8px;
    -fx-font-size: 13px;
    -fx-font-family: "Segoe UI Variable", "SF Pro Display", "Microsoft YaHei", sans-serif;
    -fx-font-weight: 400;
    -fx-padding: 10px 14px;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.2), 8, 0.4, 0, 2),
                innershadow(gaussian, rgba(255, 255, 255, 0.8), 1, 1, 0, 1);
}

/* ===== 根容器样式美化 - 明亮主题清新背景 ===== */
.root {
    -fx-background-color: linear-gradient(from 0% 0% to 100% 100%, 
                         #f8fafc 0%, 
                         #e2e8f0 50%, 
                         #f1f5f9 100%);
    -fx-font-family: "Segoe UI Variable", "SF Pro Display", "Microsoft YaHei", sans-serif;
}

/* ===== HBox容器样式 - 透明容器 ===== */
.hbox {
    -fx-background-color: transparent;
    -fx-padding: 20px;
    -fx-spacing: 20px;
}

/* ===== VBox容器样式 - 明亮主题清新卡片 ===== */
.vbox {
    -fx-background-color: rgba(255, 255, 255, 0.9);
    -fx-border-color: rgba(59, 130, 246, 0.2);
    -fx-border-width: 1px;
    -fx-border-radius: 16px;
    -fx-background-radius: 16px;
    -fx-padding: 20px;
    -fx-effect: dropshadow(gaussian, rgba(0,0,0,0.15), 15, 0.2, 0, 3),
                innershadow(gaussian, rgba(255, 255, 255, 0.8), 2, 0.5, 0, 1);
}

/* ===== 现代动画过渡效果 ===== */
.list-view .virtual-flow .clipped-container .sheet .list-cell {
    -fx-transition: all 0.2s ease-in-out;
}

/* ===== 自定义滚动条悬停增强效果 ===== */
.list-view:hover .scroll-bar:vertical {
    -fx-opacity: 1;
    -fx-pref-width: 10px;
}

/* ===== 列表项加载动画（可选） ===== */
.list-cell-animated {
    -fx-opacity: 0;
    -fx-scale-x: 0.95;
    -fx-scale-y: 0.95;
}

.list-cell-animated:loaded {
    -fx-opacity: 1;
    -fx-scale-x: 1;
    -fx-scale-y: 1;
}

/* ===== 音乐播放状态指示器样式 - 明亮主题 ===== */
.music-playing-indicator {
    -fx-background-color: linear-gradient(from 0% 0% to 100% 100%, 
                         rgba(59, 130, 246, 1) 0%, 
                         rgba(147, 197, 253, 1) 100%);
    -fx-background-radius: 50%;
    -fx-pref-width: 8px;
    -fx-pref-height: 8px;
    -fx-effect: dropshadow(gaussian, rgba(59, 130, 246, 0.7), 8, 0.8, 0, 0);
}

/* ===== 响应式设计 - 小尺寸适配 ===== */
@media (max-width: 600px) {
    .list-view .virtual-flow .clipped-container .sheet .list-cell {
        -fx-padding: 12px 16px;
        -fx-font-size: 14px;
    }
    
    .hbox {
        -fx-padding: 12px;
        -fx-spacing: 12px;
    }
    
    .vbox {
        -fx-padding: 16px;
    }
}